#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
from Map.LinearMap import *
from Map.BetterMap import *
import sys
import os
import json

import shutil
import zipfile
import time



def createMap(key):
   
    table = BetterMap()
    pricedata = [("普通","BasicTemplate"),
                 ("两宫格",2),
                 ("三宫格","ThreePalaceTemplate"),
                 ("四宫格",4),
                ]
    
    for item, price in pricedata:
        table.add(k=item, v=price)

    # >>> 1130
    if (table.get(key))=="KeyError":
        print ("该宫格类型不存在，或者名字有误")
        exit(0)
    else:
        return table.get(key)

    # >>> raise KeyError